package fl.ass.service.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author huangkailun
 * @Date 20:03 2020-10-22
 * @Description nacos配置代码集成，若在nacos中添加配置需在该类中添加对应属性
 * @Param
 * @return
 */
@NacosPropertySource(dataId = "fl-ass-service", groupId = "post-loan", autoRefreshed = true)
@Component
public class NacosConfiguration {

    @NacosValue(value = "${ulfiles.root.path}", autoRefreshed = true)
    private String ulfilesRootPath;

    @NacosValue(value = "${ulfiles.customer.path}", autoRefreshed = true)
    private String ulfilesCustomerPath;

    @NacosValue(value = "${ulfiles.server.path}", autoRefreshed = true)
    private String ulfilesServerPath;

    @NacosValue(value = "${cache.local.is.open}", autoRefreshed = true)
    private String cacheLocalIsOpen;

    @NacosValue(value = "${cache.current.cache.name}", autoRefreshed = true)
    private String cacheCurrentCacheName;

    @NacosValue(value = "${encrypt.secretkey.path}", autoRefreshed = true)
    private String encryptSecretKeyPath;

    @NacosValue(value = "${encrypt.secretkey.propnameprifixkey}", autoRefreshed = true)
    private String encryptSecretKeyPropnameprifixkey;

    @NacosValue(value = "${encrypt.secretkey.propname}", autoRefreshed = true)
    private String encryptSecretKeyPropname;

    @NacosValue(value = "${encrypt.encryptkey.keys}", autoRefreshed = true)
    private String encryptSecretKeyKeys;

    @NacosValue(value = "${flow.base.url}", autoRefreshed = true)
    private String flowBaseUrl;

    @NacosValue(value = "${flow.seq.name}", autoRefreshed = true)
    private String flowSeqName;

    @NacosValue(value = "${flow.bus.seq.name}", autoRefreshed = true)
    private String flowBusSeqName;

    @NacosValue(value = "${redis.remote.is.open}", autoRefreshed = true)
    private String redisRemoteIsOpen;

    public String getUlfilesRootPath() {
        return ulfilesRootPath;
    }

    public String getUlfilesCustomerPath() {
        return ulfilesCustomerPath;
    }

    public String getUlfilesServerPath() {
        return ulfilesServerPath;
    }

    public String getCacheLocalIsOpen() {
        return cacheLocalIsOpen;
    }

    public String getCacheCurrentCacheName() {
        return cacheCurrentCacheName;
    }

    public String getEncryptSecretKeyPath() {
        return encryptSecretKeyPath;
    }

    public String getEncryptSecretKeyPropnameprifixkey() {
        return encryptSecretKeyPropnameprifixkey;
    }

    public String getEncryptSecretKeyPropname() {
        return encryptSecretKeyPropname;
    }

    public String getEncryptSecretKeyKeys() {
        return encryptSecretKeyKeys;
    }

    public String getFlowBaseUrl() {
        return flowBaseUrl;
    }

    public String getFlowSeqName() {
        return flowSeqName;
    }

    public String getFlowBusSeqName() {
        return flowBusSeqName;
    }

    public String getRedisRemoteIsOpen() {
        return redisRemoteIsOpen;
    }

}
